package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 * 学生课程表 Mapper 接口
 * </p>
 *
 * @author wangyuqing
 * @since 2024-08-20
 */
public interface LearningLessonMapper extends BaseMapper<LearningLesson> {
    /**
     * 删除课表中的某课程
     * @param courseId,userId
     * @return
     */
    @Delete("delete from learning_lesson where course_id = #{courseId} and user_id = #{userId}")
    void deleteMyLessons(Long courseId, Long userId);
}
